package movee.spring.app.template.io.topo;

import feign.RequestInterceptor;
import feign.RequestTemplate;


/**
 * 与topo平台交互的认证信息填充
 *
 * @author movee
 */
public class TopoRequestInterceptor implements RequestInterceptor {

    @Override
    public void apply(RequestTemplate requestTemplate) {

        requestTemplate.header("Authorization", TopoConfig.token);
        requestTemplate.header("Content-Type", "application/json");
        requestTemplate.header("Accept", "application/json");
    }

}
